package com.matrix.async.bean;

import java.text.SimpleDateFormat;
import java.util.Date;

import com.matrix.core.anotations.Extend;
import com.matrix.core.pojo.EntityDTO;

public class AsyncErrorLogBean extends EntityDTO{
	@Extend
	private static final long serialVersionUID = 1L;
	/**
	 * 主键
	 */
	private String id;
	
	private String pkgId;
	
	private Date createTime;
	
	private String createBy;
	
	private String taskType;
	
	private String batchNo;
	
	private String status;
	
	private String errorLog;
	
	private int retryTimes;
	
	private String processedBy;
	
	private Date initTime;
	
	private Date enqueueTime;
	
	private Date dequeueTime;
	
	private String startTime;
	
	private String finishTime;
	
	private int orderNo;

	public AsyncErrorLogBean() {
		super();
	}

	public AsyncErrorLogBean(String id, String pkgId, Date createTime,
			String createBy, String taskType, String batchNo, String status,
			String errorLog, int retryTimes, String processedBy, Date initTime,
			Date enqueueTime, Date dequeueTime, String startTime,
			String finishTime, int orderNo) {
		super();
		this.id = id;
		this.pkgId = pkgId;
		this.createTime = createTime;
		this.createBy = createBy;
		this.taskType = taskType;
		this.batchNo = batchNo;
		this.status = status;
		this.errorLog = errorLog;
		this.retryTimes = retryTimes;
		this.processedBy = processedBy;
		this.initTime = initTime;
		this.enqueueTime = enqueueTime;
		this.dequeueTime = dequeueTime;
		this.startTime = startTime;
		this.finishTime = finishTime;
		this.orderNo = orderNo;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getPkgId() {
		return pkgId;
	}

	public void setPkgId(String pkgId) {
		this.pkgId = pkgId;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public String getCreateBy() {
		return createBy;
	}

	public void setCreateBy(String createBy) {
		this.createBy = createBy;
	}

	public String getTaskType() {
		return taskType;
	}

	public void setTaskType(String taskType) {
		this.taskType = taskType;
	}

	public String getBatchNo() {
		return batchNo;
	}

	public void setBatchNo(String batchNo) {
		this.batchNo = batchNo;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public String getErrorLog() {
		return errorLog;
	}

	public void setErrorLog(String errorLog) {
		this.errorLog = errorLog;
	}

	public int getRetryTimes() {
		return retryTimes;
	}

	public void setRetryTimes(int retryTimes) {
		this.retryTimes = retryTimes;
	}

	public String getProcessedBy() {
		return processedBy;
	}

	public void setProcessedBy(String processedBy) {
		this.processedBy = processedBy;
	}

	public Date getInitTime() {
		return initTime;
	}

	public void setInitTime(Date initTime) {
		this.initTime = initTime;
	}

	public Date getEnqueueTime() {
		return enqueueTime;
	}

	public void setEnqueueTime(Date enqueueTime) {
		this.enqueueTime = enqueueTime;
	}

	public Date getDequeueTime() {
		return dequeueTime;
	}

	public void setDequeueTime(Date dequeueTime) {
		this.dequeueTime = dequeueTime;
	}

	public String getStartTime() {
		return startTime;
	}

	public void setStartTime(Date startTime) {
		SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd hh:mm:ss");
		sdf.format(startTime);
		this.startTime = sdf.format(startTime);
	}

	public String getFinishTime() {
		return finishTime;
	}

	public void setFinishTime(Date finishTime) {
		SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd hh:mm:ss");
		sdf.format(finishTime);
		this.finishTime = sdf.format(finishTime);
	}

	public int getOrderNo() {
		return orderNo;
	}

	public void setOrderNo(int orderNo) {
		this.orderNo = orderNo;
	}

	public static long getSerialversionuid() {
		return serialVersionUID;
	}

	@Override
	public String toString() {
		return "AsyncErrorLogBean [id=" + id + ", pkgId=" + pkgId
				+ ", createTime=" + createTime + ", createBy=" + createBy
				+ ", taskType=" + taskType + ", batchNo=" + batchNo
				+ ", status=" + status + ", errorLog=" + errorLog
				+ ", retryTimes=" + retryTimes + ", processedBy=" + processedBy
				+ ", initTime=" + initTime + ", enqueueTime=" + enqueueTime
				+ ", dequeueTime=" + dequeueTime + ", startTime=" + startTime
				+ ", finishTime=" + finishTime + ", orderNo=" + orderNo + "]";
	}
	
}
